﻿using System;
using System.Collections.Generic;
using System.Text;

namespace BTSDecompress.ClassLibrary
{
    public class CustomFunction
    {
        public CustomFunction(Enums.CustomFunctions customFunction)
        {
            Type = customFunction;
        }
        private Enums.CustomFunctions _type;
        private string _columnAlias = "";
        private string _contextProperties = "";
        private string _ebXmlOption = "";
        private string _key = "";
        private int _length = 0;
        private string _messageField = "";
        private int _startPosition = 0;
        private int _startPositionfunction = 0;
        private string _query = "";
        private string _tableAlias = "";
        public string ContextProperties
        {
            get { return _contextProperties; }
            set { _contextProperties = value; }
        }
        public string EbXmlOption
        {
            get { return _ebXmlOption; }
            set { _ebXmlOption = value; }
        }
        public string Key
        {
            get { return _key; }
            set { _key = value; }
        }
        public int Length
        {
            get { return _length; }
            set { _length = value; }
        }
        public string ColumnAlias
        {
            get { return _columnAlias; }
            set { _columnAlias = value; }
        }
        public string MessageField
        {
            get { return _messageField; }
            set { _messageField = value; }
        }
        public Enums.CustomFunctions Type
        {
            get { return _type; }
            set { _type = value; }
        }
        public string Query
        {
            get { return _query; }
            set { _query = value; }
        }
        public int StartPositionFunction
        {
            get { return _startPositionfunction; }
            set { _startPositionfunction = value; }
        }
        public int StartPosition
        {
            get { return _startPosition; }
            set { _startPosition = value; }
        }
        public string TableAlias
        {
            get { return _tableAlias; }
            set { _tableAlias = value; }
        }
    }
}
